Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/takserver/src/iosMain/kotlin/org/meshtastic/core/takserver/TAKServerIos.kt a31fa287e29db2a5713a771de2d1503eb2f5fcfe (a31fa287) Text, 2.21 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.takserver

Tff7b72import T7ee787kotlinx.coroutines.CoroutineScope
Tff7b72import T7ee787kotlinx.coroutines.flow.MutableStateFlow
Tff7b72import T7ee787kotlinx.coroutines.flow.StateFlow
Tff7b72import T7ee787kotlinx.coroutines.flow.asStateFlow
Tff7b72import T7ee787org.meshtastic.core.di.CoroutineDispatchers

T8b949e/**
* iOS KMP stub. The real iOS TAK server lives in Meshtastic-Apple (`Meshtastic/Helpers/TAK/TAKServerManager.swift`) and
* uses Apple's `Network.framework` / `NWListener` + mTLS directly, not this KMP module.
*
* We provide a no-op implementation here so that the shared `core:takserver` module still compiles for the iOS KMP
* targets. Any iOS-side consumer of this module would never actually call into this path — iOS bypasses the KMP
* `TAKServer` interface entirely.
*/
Tff7b72private Tff7b72class T56d364NoopTAKServer Tb4b4b4: Te6edf3TAKServer Tb4b4b4{
Tff7b72override Tff7b72val Te6edf3isSupported Tff7b72= Tff7b72false
Tff7b72private Tff7b72val Te6edf3_connectionCount Tff7b72= Te6edf3MutableStateFlowTb4b4b4(T79c0ff0Tb4b4b4)
Tff7b72override Tff7b72val Te6edf3connectionCountTb4b4b4: Te6edf3StateFlowTff7b72<Tffa657IntTff7b72> Tff7b72= Te6edf3_connectionCountTb4b4b4.Te6edf3asStateFlowTb4b4b4(Tb4b4b4)
Tff7b72override Tff7b72var Te6edf3onMessageTb4b4b4: Tb4b4b4(Tb4b4b4(Te6edf3CoTMessageTb4b4b4, Te6edf3TAKClientInfo?Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4)Tff7b72? Tff7b72= Tff7b72null
Tff7b72override Tff7b72var Te6edf3onClientConnectedTb4b4b4: Tb4b4b4(Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4)Tff7b72? Tff7b72= Tff7b72null

Tff7b72override Tff7b72suspend Tff7b72fun Td2a8ffstartTb4b4b4(Te6edf3scopeTb4b4b4: Te6edf3CoroutineScopeTb4b4b4)Tb4b4b4: Te6edf3ResultTff7b72<Tffa657UnitTff7b72> Tff7b72= Te6edf3ResultTb4b4b4.Te6edf3successTb4b4b4(Tffa657UnitTb4b4b4)

Tff7b72override Tff7b72fun Td2a8ffstopTb4b4b4(Tb4b4b4) Tff7b72= Tffa657Unit

Tff7b72override Tff7b72suspend Tff7b72fun Td2a8ffbroadcastTb4b4b4(Te6edf3cotMessageTb4b4b4: Te6edf3CoTMessageTb4b4b4) Tff7b72= Tffa657Unit

Tff7b72override Tff7b72suspend Tff7b72fun Td2a8ffbroadcastRawXmlTb4b4b4(Te6edf3xmlTb4b4b4: Tffa657StringTb4b4b4) Tff7b72= Tffa657Unit

Tff7b72override Tff7b72suspend Tff7b72fun Td2a8ffhasConnectionsTb4b4b4(Tb4b4b4)Tb4b4b4: Tffa657Boolean Tff7b72= Tff7b72false
Tb4b4b4}

Tff7b72actual Tff7b72fun Td2a8ffcreateTAKServerTb4b4b4(Te6edf3dispatchersTb4b4b4: Te6edf3CoroutineDispatchersTb4b4b4, Te6edf3portTb4b4b4: Tffa657IntTb4b4b4)Tb4b4b4: Te6edf3TAKServer Tff7b72= Te6edf3NoopTAKServerTb4b4b4(Tb4b4b4)

Served by rngit 1.5.0 - Generated in 0.04s